<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        #box{
            width:200px;
            height: 200px;
            margin: 100px auto;
            background: red;
            transform: perspective(1200px) rotateY(60deg);
            transform-style: preserve-3d;
        }
        #box div{
            width: 100px;
            height: 100px;
            background: blue;
            transition: 1s all ease;
        }
        #box:hover div{
            transform: perspective(1200px) translateZ(200px);
        }
    </style>
    <script>

    </script>
</head>
<body>
    <div id="box">
        <div></div>
    </div>
</body>
</html>
































